﻿<%@ Page Title="" Language="C#" MasterPageFile="/Common/Master.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentForm" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHtml" runat="Server">
    <div class="easyui-layout tableEdit" data-options="fit:true,border:false">
        <div data-options="region:'center',border:false">
           <div class="z_wrap">
                <ul class="info">
					<li>
                                        <em class='l_name'>工作流程ID：</em>
                                        <div class='r_con' id='WorkFlowID'></div></li><li>
                                        <em class='l_name'>步骤：</em>
                                        <div class='r_con' id='StepIndex'></div></li><li>
                                        <em class='l_name'>上一步（如果两个节点 **,**）：</em>
                                        <div class='r_con' id='PStepIndex'></div></li><li>
                                        <em class='l_name'>条件（简单的 0 , 1 区分）：</em>
                                        <div class='r_con' id='Requirement'></div></li><li>
                                        <em class='l_name'>流程名称：</em>
                                        <div class='r_con' id='Name'></div></li><li>
                                        <em class='l_name'>部门还是人负责处理（0 人 1 部门）：</em>
                                        <div class='r_con' id='OrgOrPerson'></div></li><li>
                                        <em class='l_name'>备注：</em>
                                        <div class='r_con' id='Description'></div></li><li>
                                        <em class='l_name'>创建时间：</em>
                                        <div class='r_con' id='AddTime'></div></li><li>
                                        <em class='l_name'>组织机构ID：</em>
                                        <div class='r_con' id='OrgID'></div></li>
				</ul>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            if ($.getUrlParamer("guid") != "") {
                DataBind();
            }
        });

        function DataBind() {
            $.InvokeAjax({
                url: "Api/V1/System_WorkFlowDetailed/GetWorkFlowDetailed",
                data: { ID: $.getUrlParamer("guid") },
                callBack: function (data) {
                    var obj = $.StrToJson(data).Results;

                    $.SetValue("ID", obj.ID);
$.SetValue("WorkFlowID", obj.WorkFlowID);
$.SetValue("StepIndex", obj.StepIndex);
$.SetValue("PStepIndex", obj.PStepIndex);
$.SetValue("Requirement", obj.Requirement);
$.SetValue("Name", obj.Name);
$.SetValue("OrgOrPerson", obj.OrgOrPerson);
$.SetValue("Description", obj.Description);
$.SetValue("AddTime", $.DateFormat(obj.AddTime, 'yyyy-MM-dd HH:mm:ss'));
$.SetValue("AddUserID", obj.AddUserID);
$.SetValue("OrgLevels", obj.OrgLevels);
$.SetValue("OrgID", obj.OrgID);

                }
            });
        } 
    </script>
</asp:Content>